package com.atguigu.lease.web.admin.mapper;


import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.model.enums.ReleaseStatus;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.atguigu.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

/**
 * @author 48138
 * @description 针对表【apartment_info(公寓信息表)】的数据库操作Mapper
 * @createDate 2025-07-05 14:18:49
 * @Entity generator.entity.ApartmentInfo
 */
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {

    IPage<ApartmentItemVo> pageApartmentItemByQuery(IPage<ApartmentItemVo> page, ApartmentQueryVo queryVo);


    void saveByApartmentSubmitVo(ApartmentInfo apartmentInfo);

    ApartmentDetailVo getApartmentDetailVo(Long id);

    void updateById(@Param("id") Long id, @Param("status") ReleaseStatus status);

}




